package com.chenxi.client;

import com.chenxi.model.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient("cloud-resource-server")
public interface IUserClient {

    @RequestMapping(value = "/foo",method = RequestMethod.GET)
    String getUserName();

    @RequestMapping(value = "/userApi/getUser")
    User getUser();
}
